home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 August / August CD.bin / Shareware / Education / numericalmethods Folder / readme < prev   
Encoding:
Text File  |  1994-06-05  |  3.1 KB  |  93 lines  |  [MATS/MATL]

  1.                NUMERICAL METHODS:
  2.                MATLAB Programs
  3.            (c) 1994 by John H. Mathews
  4.  
  5.                  To Accompany
  6.  
  7.                NUMERICAL  METHODS
  8.             for Mathematics, Science,
  9.                 and Engineering
  10.                 Second Edition
  11.                PRENTICE HALL, INC.
  12.           Englewood Cliffs, NJ 07632
  13.                (c) 1992, 1987 by
  14.                 John H. Mathews
  15.      California State University, Fullerton
  16.          E-mail  mathews@fullerton.edu
  17.  
  18.  
  19.  
  20.    This free software is complements of the author.
  21. It is permissible to copy this software for educational purposes, provided
  22. that it is used with the textbook. The software may not be sold for profit and
  23. may only be sold in such a way that the cost of reproduction are recovered.
  24.  
  25.  
  26.  
  27.                        PREFACE
  28.  
  29.   This disk contains numerical methods software coded in 
  30. MATLAB.  The algorithms are described in the text NUMERICAL 
  31. METHODS for Mathematics, Science, and Engineering.  
  32.   A printed version of this material is titled 
  33. "MATLAB Programming Guidebook for NUMERICAL METHODS."
  34.   The author appreciates correspondence regarding both the
  35. textbook and the supplements. You are welcome to correspond
  36. by mail or electronic mail.
  37.  
  38. Prof.  John  H.  Mathews
  39. Department of Mathematics
  40. California State University Fullerton
  41. Fullerton, CA  92634
  42. (714) 773-3631
  43. (714) 773-3196
  44. mathews@fullerton.edu
  45.  
  46.  
  47.                     INSTRUCTIONS
  48.  
  49. 1. For the PC version:  
  50.     Move to the appropriate directory:  chap_2, chap_3, ... etc.
  51.  
  52.     For the Macintosh version:  
  53.     Move to the appropriate folder:  chap_2, chap_3, ... etc.
  54.  
  55. 2. All of the algorithms for the text have been coded in
  56.     Matlab's programming language and stored as subroutines.  
  57.     The example files for  chap_2  are named  a2_1.m, a2_2.m, ... etc.
  58.  
  59. 3. The textbook discusses the following algorithm:
  60.  
  61.     Algorithm 2.1 (Fixed Point Iteration). To find a solution to the equation
  62.     x  =  g(x)   by starting with  p(0)  and iterating   p(n+1)  =  g(p(n)).
  63.  
  64.     To run the example for Algorithm 2.1 the user needs to use the script file 
  65.     named a2_1.m.  This is accomplished by executing the Matlab command:
  66.  
  67.     a2_1 
  68.  
  69. 3. The Matlab script in  a2_1.m  will call the subroutine named  fixpt.m 
  70.     which is included in the sub directory or folder named  chap_2.
  71.     Also, for the above example, the following function must exist as a 
  72.     M-file named  g.m.
  73.  
  74.     function y = g(x)
  75.     y = 1 + x - x.^2 ./4;
  76.  
  77.     For demonstration purposes, I have used a special Matlab feature which 
  78.     opens and writes to a file to ensure that the above M-file  g.m  will exist
  79.     in the proper sub directory or folder along with the script file a2_1.m  and
  80.     function (subroutine) file  fixpt.m.  These commands are:
  81.  
  82.     delete g.m
  83.     diary g.m; disp('function y = g(x)');...
  84.                disp('y = 1 + x - x.^2 ./4;');...
  85.     diary off;
  86.  
  87. 4. Once the process of writing a function M-files has been mastered,
  88.     it is not necessary to use the diary commands mentioned above 
  89.     to create this function M-file named g.m.  The user can then
  90.     delete these lines from the script file  a2_1.m.
  91.  
  92.  
  93.